package com.ricky.web.table;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Ricky
 * @date 2020/11/30
 */
@Data
@ApiModel("服务")
@DatabaseTable(tableName = "service_list")
public class Service {
    @DatabaseField(id = true)
    @ApiModelProperty(value = "服务id")
    private String id;
    @DatabaseField
    @ApiModelProperty(value = "服务名称")
    private String name;
    @DatabaseField(foreign = true, columnName = "serverId", foreignAutoRefresh = true)
    @ApiModelProperty(value = "服务所在服务器id")
    private Server server;
    @DatabaseField
    @ApiModelProperty(value = "服务所在目录")
    private String path;
    @DatabaseField
    @ApiModelProperty(value = "服务文件名称")
    private String fileName;
    @DatabaseField
    @ApiModelProperty(value = "服务启动命令")
    private String startCommand;

}
